package com.firefighting.util;
/**
 * @author Liuxc
 * 
 * @funtion 自动生成账号
 * 
 * */
public class AutogenerationAccount {
	
	//Liuxc 企业账号
    public static String accountFormat(String roleShort, String enterpriseId , int userId ){
    	String account = null;
    	account = roleShort +  String.format("%03d" , Integer.parseInt(enterpriseId)) + String.format("%04d", userId);
    	return account;
    }
  //消防队账号
	public static String firefightingAccountFormat(String roleShort, int userId) {
		// TODO Auto-generated method stub
		String account = null;
    	account = roleShort +  String.format("%04d", userId);
    	return account;
	}
}
